<form method="post">
<input type="text" name="ItemName[]" >
<input type="text" name="ItemName[]" >
<input type="text" name="ItemName[]" >
<input type="submit" name ="submit" value="OK">
</form>
<?php
$submit = $_POST["submit"];

if($submit){
	print_r( $_POST['ItemName'] );
	foreach ($_POST['ItemName'] as $item)
	{

	$query  = "INSERT INTO  tableName (field1)";
	$query .= " VALUES ('" .  $item . "')";
	echo $query;
	}
}
?>